<?php
$update = Yii::app()->createUrl('/user/profileField/update',array('id'=>$model->id));
$del_link =CHtml::linkButton(UserModule::t('Delete Profile Field'),array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure to delete this item?', 'class'=>'button-s'));
$this->_toolbar = array(
		'title'	=>	UserModule::t("View Profile Field #")." ".$model->varname,
		'buttons'=>array(
							array(
								"label"=>UserModule::t('Update Profile Field'),
								"htmloption"=>array("id"=>"update", "class"=>"button", "onclick"=>"location.href='$update'")
							),
							$del_link,
			)
);
?>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'varname',
		'title',
		'field_type',
		'field_size',
		'field_size_min',
		'required',
		'match',
		'range',
		'error_message',
		'other_validator',
		'widget',
		'widgetparams',
		'default',
		'position',
		'visible',
	),
)); ?>
